{include file="$usertemplate/header.tpl.html" title=header} 
    <div class="content">
        <div class="leftCont">
            {if $productItem}
            <div class="boxpro">
                <div class="tt-boxpro-1">
                    <ul>
                        {if $patParentItems} 
                        {foreach from=$patParentItems key=i item=patParentItem}
                            {if $i == 0}
                            <li class="tt-left-1" style="float:left; width:auto; background:none;">
                                <a href="{$patParentItem->getUrl('vn')}" style="padding-left:50px;">
                                    {$patParentItem->getName($lang)}
                                </a>
                            </li>
                            {else}
                                <li class="tt-left-1">
                                    <a href="{$patParentItem->getUrl('vn')}">
                                        {$patParentItem->getName($lang)}
                                    </a>
                                </li>
                            {/if}
                        {/foreach}
                        {/if}
                        
                    </ul>
                </div>
                <div class="cc-boxpro">
                    <div class="prodetail">
                        <ul>
                            <li class="tit"><p>{$productItem->getName($lang)}</p></li>
                            <li class="pic"><img src="{$ROOTPATH}/templates/{$usertemplate}/images/spsp-1.jpg" alt=""></li>
                            <li class="tom">
                                <p>Tính năng nổi bật:</p>
                                {$productItem->getNsx()}
                            </li>
                            {if $productItem->getSPrice()}
                            {assign var=price value=$productItem->getPrice()}
                            {assign var=sprice value=$productItem->getSPrice()}
                            {assign var=percent value=$sprice*100*-1/$price+100|round:1 }
                            <li class="gia"><p>Giá khuyễn mãi: {$productItem->getSPrice()|number_format:0:",":"."} vnđ, đã giảm {$percent}%</p></li>
                            {else}
                            <li class="gia"><p>Giá: {$productItem->getPrice()|number_format:0:",":"."} vnđ</p></li>
                            {/if}
                            <li class="nut-xem"><a href="{$ROOTPATH}/index.php?op=shopping&lang=vn">Xem giỏ</a></li>
                            <li class="nut-mua">
                                <form class="shopping" name="{$productItem->getId()}" action="" method="post">
                                    <input type="hidden" name="op" value="shopping" />
                                    <input type="hidden" name="id" value="{$productItem->getId()}" />
                                    <input type="hidden" name="slug" value="{$productItem->getSlug()}" />
                                    <input type="hidden" name="plus" value="addToCart" />
                                    <input type="hidden" name="lang" value="{$lang}" /> 
                                    <a href="javascript:;" onclick="$(this).parents('form').submit();">Mua hàng</a>
                                </form>
                            </li>
                            <li class="mot">
                                <a>Mô tả sản phẩm</a>
                                {$productItem->getDetails($lang)}
                            </li>
                        </ul>
                    </div><!--prodetail-->
                </div>
            </div><!--boxpro-->
            {else}
            <div class="boxpro">
                <p>Sản phẩm này không tồn tại trong hệ thống</p>
            </div>
            {/if}
        </div><!--leftCont-->
        <!--rightCont-->
     {include file="$usertemplate/right.tpl.html" title=right}  
    </div><!--content-->
{include file="$usertemplate/footer.tpl.html" title=footer} 